﻿/// ****************************************************************************
/// Author:	        Robin Zhu
/// Create Date:	2012-4-28
/// Purpose: 		用户操作日志记录
/// ****************************************************************************
/// Modify By		Date			Remark
/// ****************************************************************************
/// 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace RB.Web.Security
{
    /// <summary>
    /// 用户操作日志记录
    /// </summary>
    [DataContract]
    [RB.DataAccess.Attributes.QueryName("UserActionLog")]
    [RB.DataAccess.Attributes.TableName("UserActionLog")]
    public class UserActionLog
    {
        [DataMember]
        [System.ComponentModel.DataAnnotations.StringLengthAttribute(20)]
        public string AppCode { get; set; }

        [DataMember]
        [System.ComponentModel.DataAnnotations.StringLengthAttribute(20)]
        public string PermCode { get; set; }

        [DataMember]
        public DateTime ActionTime { get; set; }

        [DataMember]
        public System.Guid UserId { get; set; }

        [DataMember]
        public System.Guid RoleId { get; set; }

        [DataMember]
        [System.ComponentModel.DataAnnotations.StringLengthAttribute(23)]
        public string Ticket { get; set; }

        [DataMember]
        [System.ComponentModel.DataAnnotations.StringLengthAttribute(20)]
        public string HttpMethod { get; set; }

        [DataMember]
        [System.ComponentModel.DataAnnotations.StringLengthAttribute(255)]
        public string PathAndQuery { get; set; }

        [DataMember]
        public bool Unauthorized { get; set; }

        [DataMember]
        [System.ComponentModel.DataAnnotations.StringLengthAttribute(16)]
        public string IPAddress { get; set; }

        [DataMember]
        [System.ComponentModel.DataAnnotations.StringLengthAttribute(100)]
        public string HttpForwarded { get; set; }

    }


}
